package com.study.s02.factorymethod;

public class MainClass {
	
	public static void main(String args[]) {
		
		//获得苹果工厂
		FruitFactory ff = new AppleFactory();
		//工厂造苹果
		Fruit apple = ff.getFruit();
		apple.get();
	}
	
}
